package com.greate.community.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.greate.community.dao.CityMapper;
import com.greate.community.entity.City;
import com.greate.community.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl extends ServiceImpl<CityMapper, City> implements CityService {

    @Autowired
    private CityMapper cityMapper;


    @Override
    public List<City> getAllCities() {
        return cityMapper.selectList(null);
    }
}
